﻿@model WB.UI.Designer.Models.ControlPanel.CompilationVersionModel
@{
    ViewBag.Title = "Compilation Versions";
    Layout = "Layout.ControlPanel";
}

<h2>Edit compilation version</h2>
<div class="row">
    <div class="col-md-5">
        <form method="post">
            @Html.AntiForgeryToken()
            @Html.ValidationSummary()
            @Html.HiddenFor(x => x.QuestionnaireId)
            <div class="form-group">
                @Html.LabelFor(x => x.Version, new { @class = "control-label" })
                @Html.TextBoxFor(x => x.Version, new { @class = "form-control", autocomplete = "off", @type = "number" })
                @Html.ValidationMessageFor(x => x.Version, null, new { @class = "help-block" })
            </div>
            <div class="form-group">
                @Html.LabelFor(x => x.Description, new { @class = "control-label" })
                @Html.TextAreaFor(x => x.Description, new { @class = "form-control", autocomplete = "off" })
                @Html.ValidationMessageFor(x => x.Description, null, new { @class = "help-block" })
            </div>
            <div class="form-group">
                <button type="submit" class="btn btn-primary">Save</button>
            </div>
        </form>
    </div>
</div>
